package scripts;import bot.ScriptMethods;public class NatureThief extends ScriptMethods implements Runnable {	public void start() {		System.gc();		getAccountSettings();		scriptRunning = true;		scriptThread = new Thread(this);		scriptThread.start();	}	public void stop() {		System.gc();		scriptThread = null;		scriptRunning = false;		debug("Stopped script.");	}	public void run() {		while (scriptRunning) {			try {				handleEvents();				if (!isSleeping()) {					atObject(539, 1547);					wait(1000);				}				wait(100);			} catch (Exception e) {				e.printStackTrace();			}		}	}	public void handleEvents() throws Exception {		if (welcomeBoxOpen())			setWelcomeBox();		if (!isLoggedIn())			doLogin();		if (getFatigue() > 80 && !isSleeping()) {			wait(600);			useItem(1263);			wait(600);		}		if (getFatigueSleeping() < 10 && isSleeping())			doSleeping();	}}